package com.unytech.project.entity.torrents.baseinfo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.unytech.project.entity.BaseEntity;

/**
 * 行政区划代码表
 * @author DolphinBoy
 * 行政区划代码编码采用15位编码规则
 */
@Entity 
@Table(name="AD_CD_B")
public class AD_CD_B extends BaseEntity{
	/** 行政区编码 */
	@Id @Column(name="ADCD", length=15)
	private String adcd;
	
	/** 行政区名称 */
	@Column(name="ADNM",length=60, unique=true, nullable=false)
	private String adnm;

	public String getAdcd() {
		return adcd;
	}

	public void setAdcd(String adcd) {
		this.adcd = adcd;
	}

	public String getAdnm() {
		return adnm;
	}

	public void setAdnm(String adnm) {
		this.adnm = adnm;
	}
}
